package com.mp3.player.events
{
	import com.mp3.player.vos.TrackList;
	
	import flash.events.Event;
	
	
	/**
	 * Event that associated with track list.  
	 */	
	public class TrackListEvent extends Event
	{
		
		/** 
		 * The TrackListEvent.SAVE constant defines the value of the 
		 * type property of the event object for a save track list event. 
		 */
		public static const SAVE:String = "save";
		
		/** 
		 * The TrackListEvent.ADD constant defines the value of the 
		 * type property of the event object for a add track(s) event. 
		 */
		public static const ADD:String = "add";
		
		/** 
		 * The TrackListEvent.LOAD_TRACK_LIST constant defines the value of the 
		 * type property of the event object for a load track list  event. 
		 */
		public static const LOAD_TRACK_LIST: String = "loadTrackList";
		
		/**
		 * track list. 
		 */		
		public var trackList:TrackList;
		
		/**
		 * Constructor.
		 *  
		 * @param type type
		 * @param trackList TrackList
		 * @param bubbles Boolean
		 * @param cancelable Boolean
		 */		
		public function TrackListEvent(type:String, trackList:TrackList = null, bubbles:Boolean=true, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			
			this.trackList = trackList;
		}
	}
}